﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AccountRequestReview.aspx.vb" Inherits="Training.AccountRequestReview" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Training - Training:: Account Requests</title>
<link rel="Stylesheet" type="text/css" media="screen" href="../css/adminStyle.css" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="ctr">
        <h2>Account Request Review</h2>
        <p>Choose to review, approve or delete Account Request</p>
        
        <div class="text" style="width: 700px;text-align: left;margin:0 auto;">
            <fieldset>
                <legend>User Information</legend>
                
                <div class="row">
                    <div class="half">
                        First Name:<br />
                        <b><asp:Label ID="lblFname" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="half">
                        Last Name:<br />
                        <b><asp:Label ID="lblLname" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        Company:<br />
                        <b><asp:Label ID="lblCompany" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="half">
                        Email:<br />
                        <b><asp:Label ID="lblEmail" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        Address:<br />
                        <b><asp:Label ID="lblAddress" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="half">
                        City:<br />
                        <b><asp:Label ID="lblCity" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        State:<br />
                        <b><asp:Label ID="lblState" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="half">
                        Zip:<br />
                        <b><asp:Label ID="lblZip" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        Phone:<br />
                        <b><asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="half">
                        Created Date:<br />
                        <b><asp:Label ID="lblCreated" runat="server" Text=""></asp:Label></b>
                    </div>
                    <div class="clr"></div>
                </div>
                
            </fieldset>
            
            <asp:Label ID="lblAlert" CssClass="Alert" runat="server" Text=""></asp:Label>
            
            <fieldset>
                <legend>Create Account</legend>
                
                <div class="row">
                    <div class="half">
                        Login Name: 
                        <asp:RequiredFieldValidator ID="rfLogin" runat="server" ErrorMessage="required" 
                            ControlToValidate="tbLogin" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator><br />
                        <asp:TextBox ID="tbLogin" CssClass="formfield" Width="200px" 
                            runat="server"></asp:TextBox>
                    </div>
                    <div class="half">
                        Activate User:<br />
                        <asp:RadioButtonList ID="rblActive" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="1" Text="Yes" Selected="True"></asp:ListItem>
                            <asp:ListItem Value="0" Text="No"></asp:ListItem>
                        </asp:RadioButtonList>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        Password*: 
                        <asp:RequiredFieldValidator ID="rfPass" runat="server" ErrorMessage="required" 
                            ControlToValidate="tbPass" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator><br />
                        
                        <asp:TextBox ID="tbPass" CssClass="formfield" Width="200px" 
                            runat="server" TextMode="Password"></asp:TextBox>
                        
                        <cc1:PasswordStrength ID="tbPass_PasswordStrength" runat="server" 
                            Enabled="True" 
                            TargetControlID="tbPass" MinimumNumericCharacters="0" 
                            MinimumSymbolCharacters="0" 
                            MinimumUpperCaseCharacters="0" 
                            MinimumLowerCaseCharacters="0" 
                            PreferredPasswordLength="6" DisplayPosition="LeftSide">
                        </cc1:PasswordStrength>
                        
                    </div>
                    <div class="half">
                        Confirm Password: 
                        <asp:RequiredFieldValidator ID="rfPConf" runat="server" ErrorMessage="required" 
                            ControlToValidate="tbPConf" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="tbPass" 
                            ControlToValidate="tbPConf" CssClass="small" Display="Dynamic" 
                            ErrorMessage="passwords do not match"></asp:CompareValidator>
                        <br />
                        <asp:TextBox ID="tbPConf" CssClass="formfield" Width="200px" 
                            runat="server" TextMode="Password"></asp:TextBox>
                    </div>
                    <div class="clr"></div>
                </div>
                
                <div class="row">
                    <div class="half">
                        Email: 
                        <asp:RequiredFieldValidator ID="rfEmail" runat="server" ErrorMessage="required" 
                            ControlToValidate="tbEmail" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="reEmail" runat="server" 
                            ControlToValidate="tbEmail" CssClass="small" Display="Dynamic" 
                            ErrorMessage="invalid email" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        <br />
                        <asp:TextBox ID="tbEmail" CssClass="formfield" Width="200px" 
                            runat="server"></asp:TextBox>
                    </div>
                    <div class="half">
                        Confirm Email: 
                        <asp:RequiredFieldValidator ID="rfEConf" runat="server" ErrorMessage="required" 
                            ControlToValidate="tbEConf" CssClass="small" Display="Dynamic"></asp:RequiredFieldValidator>
                        <asp:CompareValidator ID="cvEmail" runat="server" ControlToCompare="tbEmail" 
                            ControlToValidate="tbEConf" CssClass="small" Display="Dynamic" 
                            ErrorMessage="email does not match"></asp:CompareValidator>
                        <br />
                        <asp:TextBox ID="tbEConf" CssClass="formfield" Width="200px" 
                            runat="server"></asp:TextBox>
                    </div>
                    <div class="clr"></div>
                </div>
            </fieldset>
            
        </div>
        
        <br />
        
        <p class="small">(* Password requires 6 characters.s)</p>
        
        <asp:Button ID="btnUpdate" runat="server" Text="Update User" CssClass="button" />
        
        &nbsp;
        
        <asp:Button ID="btnDelete" runat="server" Text="Delete User" CssClass="button" CausesValidation="false" />
        <cc1:ConfirmButtonExtender ID="btnDelete_ConfirmButtonExtender" runat="server" 
            ConfirmText="Are you sure you want to delete this user?" Enabled="True" TargetControlID="btnDelete">
        </cc1:ConfirmButtonExtender>
        
        &nbsp;
        
        <asp:Button ID="btnClear" runat="server" CssClass="button" Text="Clear Field" CausesValidation="false" />
        
        <br />
        <p><a href="AccountRequests.aspx">Account Requests</a> &nbsp; - &nbsp;
        <a href="Default.aspx">Admin Main</a></p>
    </div>
    </form>
</body>
</html>
